<extend name="../Public/base" />
<block name="title">基本设置</block>
<block name="body">
    <php>print_r($Think['config'])</php>
    <form class="form form-horizontal" id="form-config-add" method="post" action="{:U('setting')}">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">QQ APP ID：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.QQ_APP_ID}" id="QQ_APP_ID" name="QQ_APP_ID">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">QQ APP Key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.QQ_APP_KEY}" id="QQ_APP_KEY" name="QQ_APP_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">新浪微博 API key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.SINA_API_KEY}" id="SINA_API_KEY" name="SINA_API_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">新浪微博 Secret：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.SINA_SECRET}" id="SINA_SECRET" name="SINA_SECRET">
            </div>
        </div>
        <!--
         <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">新浪微博 API key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.SINA_API_KEY}" id="SINA_API_KEY" name="SINA_API_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">豆瓣 API key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.DOUBAN_API_KEY}" id="DOUBAN_API_KEY" name="DOUBAN_API_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">豆瓣 Secret：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.DOUBAN_SECRET}" id="DOUBAN_SECRET" name="DOUBAN_SECRET">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">人人登陆 API Key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.RENREN_API_KEY}" id="RENREN_API_KEY" name="RENREN_API_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">人人 Secret：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.RENREN_SECRET}" id="RENREN_SECRET" name="RENREN_SECRET">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">开心网 API Key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.KAIXIN_API_KEY}" id="KAIXIN_API_KEY" name="KAIXIN_API_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">开心网 Secret：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.KAIXIN_SECRET}" id="KAIXIN_SECRET" name="KAIXIN_SECRET">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">Github Client ID：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.GITHUB_CLIENT_ID}" id="GITHUB_CLIENT_ID" name="GITHUB_CLIENT_ID">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">Github Client Secret：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.GITHUB_CLIENT_SECRET}" id="GITHUB_CLIENT_SECRET" name="GITHUB_CLIENT_SECRET">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">搜狐 API Key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.SOHU_API_KEY}" id="SOHU_API_KEY" name="SOHU_API_KEY">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">搜狐 Secret：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" value="{$detail.SOHU_SECRET}" id="SOHU_SECRET" name="SOHU_SECRET">
            </div>
        </div>
        -->
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <input type="submit" class="btn btn-success radius" value="&nbsp;&nbsp;确认&nbsp;&nbsp;">
            </div>
        </div>
        <div class="row cl">
            <div class="btn btn-block radius mt-30 mb-15" style="color:#fff;background-color: #5a98de;border-color: #5a98de;">点击下面链接获取密钥</div>
            <label class="form-label col-xs-4 col-sm-2 mt-10"><a class="btn-link" href="http://connect.qq.com/" target="_blank">QQ</a></label>
            <label class="form-label col-xs-4 col-sm-2 mt-10"><a class="btn-link" href="http://open.weibo.com/" target="_blank">新浪微博</a></label>
        </div>
    </form>
</block>